﻿<Window x:Class="ZMenFM.Interface.ZMPlayerWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ZMPlayerWindow"
        Height="400"
        Width="300"
        ResizeMode="CanMinimize"
        WindowStyle="None"
        Icon="/ZMenFM;component/Images/ICON.ico"
        WindowStartupLocation="CenterScreen"
        MouseMove="Window_MouseMove" Opacity="0.95">

    <!-- 背景图片 -->
    <Window.Background>
        <ImageBrush ImageSource="pack://application:,,,/ZMenFM;component/Images/background.png"></ImageBrush>
    </Window.Background>

    <Grid>
        <StackPanel Orientation="Horizontal">
            <Rectangle Name="Rect" Width="100" Height="100" Fill="Blue">
                <Rectangle.Triggers>
                    <EventTrigger RoutedEvent="Rectangle.MouseUp">
                        <BeginStoryboard>
                            <Storyboard>
                                <DoubleAnimation
        Storyboard.TargetName="Rect"
                                    Storyboard.TargetProperty="Left"
        AutoReverse="true" RepeatBehavior="Forever"  Duration="0:0:5"  From="0" To="-100" />
                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger>
                </Rectangle.Triggers>
            </Rectangle>
        </StackPanel>
    </Grid>
</Window>
